(function() {
    'use strict';
    angular
        .module('app')
        .controller('errorCtrl',errorCtrl);
    errorCtrl.$inject = ['$scope','$stateParams'];
    function errorCtrl($scope,$stateParams) {
        var vm = $scope.vm = {};
        angular.extend( vm,{
            init : function(){
                vm.status = '未知';
                if($stateParams.status){
                    vm.status = $stateParams.status.toString();
                }
            }

        });
        vm.init();
    }
})();
